package com.zz.yt.lib.bluetooth.bt.printer;

import android.graphics.Bitmap;

public interface PrinterInterface {
    int MSG_CONNECT_START = 1;
    int MSG_CONNECT_ING = 2;
    int MSG_CONNECT_FINISH = 3;
    int MSG_DISCONNECTED = 4;

    boolean connect(String paramString);

    void disconnect();

    boolean print(int paramInt1, int paramInt2);

    void pageSetup(int paramInt1, int paramInt2);

    void drawBox(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);

    /**
     * @param lineWidth：线的宽度
     * @param start_x：开始点
     * @param start_y：开始点
     * @param end_x：结束点
     * @param end_y：结束点
     * @param fullLine:是否是实现
     */
    void drawLine(int lineWidth, int start_x, int start_y, int end_x, int end_y, boolean fullLine);

    void drawText(int paramInt1, int paramInt2, String paramString, int paramInt3, int paramInt4, int paramInt5, boolean paramBoolean1, boolean paramBoolean2);

    /**
     * @param text_x:字左上角的x坐标
     * @param text_y:字左上角的Y坐标
     * @param width：字的宽度
     * @param height：字的高度
     * @param paramString：显示的值
     */
    void drawText(int text_x, int text_y, int width, int height, String paramString);

    /**
     * @param text_x:字左上角的x坐标
     * @param text_y:字左上角的Y坐标
     * @param width：字的宽度
     * @param height：字的高度
     * @param paramString：显示的值
     * @param fontSize：
     * @param rotate：
     * @param bold：
     * @param underline：
     * @param reverse：
     */
    void drawText(int text_x, int text_y, int width, int height, String paramString,
                  int fontSize, int rotate, int bold, boolean underline, boolean reverse);

    void drawBarCode(int paramInt1, int paramInt2, String paramString, int paramInt3, boolean paramBoolean, int paramInt4, int paramInt5);

    void drawQrCode(int paramInt1, int paramInt2, String paramString, int paramInt3, int paramInt4, int paramInt5);

    void drawGraphic(int paramInt1, int paramInt2, int paramInt3, int paramInt4, Bitmap paramBitmap);

    String printerStatus();

    void drawINVERSE(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);

    int GetStatus();

    void Write(byte[] paramArrayOfByte);

    void Read(byte[] paramArrayOfByte, int paramInt1, int paramInt2);

    void feed();

    String r_data();

    enum BarcodeType {
        JAN3_EAN13, JAN8_EAN8, CODE39, CODE93, CODE128, CODABAR, ITF, UPC_A, UPC_E, EAN13Plus2, EAN13Plus5, EAN8Plus2, EAN8Plus5, UPCAPlus2, UPCAPlus5, UPCEPlus2, UPCEPlus5, Postnet, MSI, QR;
    }

    enum PrintManufacturer {
    }
}
